package org.common.utils.fasttest;

import org.common.utils.fasttest.util.SnowIdWorker;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhouzhibing
 * @date 2024/7/9
 */
public class TestHashCall {
    public static void test() {
        int n100 = 100;
        int n50 = 50;

//        for (int i = 0; i < 100; i++) {
//            System.out.println(i + " %n100 : " + (i % n100) + " %n50 : " + (i % n50));
//        }

        SnowIdWorker worker = new SnowIdWorker(1,1,1);

        int length = 100;
        for (int i = 0; i < 100; i++) {
            long id = worker.nextId();
            System.out.println(id + " %n100 : " + (id % n100) + " %n50 : " + (id % n50));
        }
    }
}
